package com.neusoft.serviceImp;

import com.neusoft.mapper.AttendMapper;
import com.neusoft.pojo.Attend;
import com.neusoft.service.IAttendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendServiceImp implements IAttendService {
    @Autowired(required = false)
    AttendMapper attendMapper;
    @Override
    public List<Attend> attendanceList() {
        return attendMapper.attendList();
    }

    @Override
    public boolean check(Attend attend) {
        boolean flag = attendMapper.updateAttend(attend);
        return flag;
    }
}
